//引入请求库
import http from "../utils/http2.js";

export function queryCustomer(data) {
  return http.post("/api/customer/list", data);
}

//保存用户
export function saveCustomer(data) {
  return http.post("/api/customer", data);
}

//检查账号
export function checkUserAccount(account) {
  return http.get("/api/user/check", { account });
}

//根据id找到客户
export function getCustomerById(id) {
  return http.get("/api/customer", { id });
}

//修改客户
export function updateCustomer(data){
  return http.put("/api/customer", data);
}
